<template>
  <div>
    <p>{{word}}</p>
    <button @click="btnFn">点我有惊喜嘿嘿</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      word:'dadaada'
    };
  },

  methods: {
    btnFn(){
    // console.log(2222);
    this.word= this.word.split("").reverse().join('')
    }
  },
};
</script>

<style lang="scss" scoped>

</style>